from django.conf import settings
from django.core.files.storage import Storage
class FastDFSStorage(Storage):
    '''
    自定义文件存储系统，修改存储方案
    '''
    def __init__(self,fdfs_base_url=None):
        """

        """
        self.fdfs_base_url=fdfs_base_url or settings.FDFS_BASE_URL
    def url(self,name):
        return self.fdfs_base_url+name